package org.ilovecode.display 
{
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	
	import org.ilovecode.mvc.View;
	
	/**
	 * ...
	 * @author ...
	 */
	public class ConditionsContent extends View 
	{
		public var zbLogoButton:SimpleButton;
		
		public function ConditionsContent(name:String="") 
		{
			super(name);
		}
		
		override protected function addListeners():void
		{
			super.addListeners();
			zbLogoButton.addEventListener(MouseEvent.CLICK, zbLogoButton_Click);
		}
		
		override protected function removeListeners():void
		{
			super.removeListeners();
			zbLogoButton.removeEventListener(MouseEvent.CLICK, zbLogoButton_Click);
		}
		
		private function zbLogoButton_Click(event:MouseEvent):void {
			var url:String = "http://www.zaba.hr";
			navigateToURL(new URLRequest(url), "_blank");
		}
		
	}

}